<template>
  <d2-container>
    <edit-plan ref="editForm" v-if="editShow" v-bind:isUpdate="false" @submitOk="handleSubmitOk"></edit-plan>
  </d2-container>
</template>

<script>
import editPlan from './../components/editPlan'
// import { newPlan } from '@api/plan.api.fetch'
export default {
  name: 'addnew',
  components: {
    editPlan
  },
  data () {
    return {
      editShow: true
    }
  },
  methods: {
    handleSubmitOk () {
      this.$message.success('ok')
      this.$refs['editForm'].reset()
      this.$router.push('all')
    }
  }
}
</script>

<style>

</style>
